icontheme: use g_file_load_contents() for symbolic icons
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 29 Sep 2013 22:38:54 +0000 (15:38 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 30 Sep 2013 16:45:22 +0000 (09:45 -0700)
commit3d602f5b0a67a7b515dc5add504e02e486aad70c
tree97c43d013783b3d8de27372d5b7a70aa70916c7e
parent28a3638448924acf69c9ac5b77b856d6ec138aec
icontheme: use g_file_load_contents() for symbolic icons

When loading a symbolic icon, g_file_get_contents() is currently used
with the icon pathname, to load its SVG data. This won't work when the
icon is not a local file, for instance when a symbolic icon is loaded
from a GFileIcon with a GResource path.
Fortunately GtkIconInfo already holds a GFile, so we can just use
g_file_load_contents() to load the data instead.

https://bugzilla.gnome.org/show_bug.cgi?id=709056
gtk/gtkicontheme.c